package com.ali.framework.common.util;


/**
 * uid 线程本地工具类
 * @author mwan
 *
 */
public class UidThreadLocal {
    
    private static ThreadLocal<Long> uidThread = new ThreadLocal<>();
    
    public static void set(Long uid){
        
    	uidThread.set(uid);
    }
    
    public static Long get(){
        
        return uidThread.get();
    }
    
    //防止内存泄漏
    public static void remove(){
        
    	uidThread.remove();
    }
    
}